<template>
	<div>
			<el-form-item v-if="$check_register_field('add','merchant_name','/merchant_users/view')" label="商家名称" prop="merchant_name">
					<el-input id="merchant_name" v-model="form['merchant_name']" placeholder="请输入商家名称"></el-input>
				</el-form-item>
				<el-form-item v-if="$check_register_field('add','person_in_charge','/merchant_users/view')" label="负责人" prop="person_in_charge">
					<el-input id="person_in_charge" v-model="form['person_in_charge']" placeholder="请输入负责人"></el-input>
				</el-form-item>
				<el-form-item v-if="$check_register_field('add','store_phone','/merchant_users/view')" label="店铺电话" prop="store_phone">
					<el-input id="store_phone" v-model="form['store_phone']" placeholder="请输入店铺电话" type="tel"></el-input>
				</el-form-item>
				<el-form-item v-if="$check_register_field('add','store_address','/merchant_users/view')" label="店铺地址" prop="store_address">
					<el-input id="store_address" v-model="form['store_address']" placeholder="请输入店铺地址"></el-input>
				</el-form-item>
				<el-form-item v-if="$check_register_field('add','registered_capital','/merchant_users/view')" label="注册资金" prop="registered_capital">
					<el-input-number id="registered_capital" v-model.number="form['registered_capital']"></el-input-number>
				</el-form-item>
				<el-form-item v-if="$check_register_field('add','number_of_employees','/merchant_users/view')" label="公司人数" prop="number_of_employees">
					<el-input-number id="number_of_employees" v-model.number="form['number_of_employees']"></el-input-number>
				</el-form-item>
		</div>
</template>

<script setup>
import { ref, onMounted,toRefs } from "vue";
import { $post, $get } from "@/api/Api.js";
import storageHelper from "@/libs/StorageHelper";
import {
  $check_register_field,
  $fullUrl,
  $banseUrl,
  $get_stamp,
  $get_rand,
} from "@/utils/utils.js";
import { useStore } from "vuex";
let store = useStore();
const props = defineProps({
	form: {
        type: Object,
        default:{
				"merchant_name":  '' ,
					"person_in_charge":  '' ,
					"store_phone":  '' ,
					"store_address":  '' ,
					"registered_capital":  0 ,
					"number_of_employees":  0 ,
			},
    },
  })
let { form} = toRefs(props)//list
const emit = defineEmits(['update: form'])
let set_auth = (payload) => store.commit("web/set_auth", payload);

																		
// 富文本编辑器更新
						onMounted(()=>{
						})
</script>
